package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.AuditFailDTO;
import com.xuecheng.content.model.dto.AuditSuccessDTO;
import com.xuecheng.content.model.po.CourseAudit;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 勾新杰
 * @since 2025-02-15
 */
public interface ICourseAuditService extends IService<CourseAudit> {

    /**
     * 提交审核
     * @param courseId 课程id
     */
    void commitAudit(Long courseId);

    /**
     * 审核通过
     * @param courseId 课程id
     */
    void success(Long courseId, AuditSuccessDTO auditSuccessDTO);

    /**
     * 审核失败
     * @param courseId 课程id
     * @param auditFailDTO 审核失败原因
     */
    void fail(Long courseId, AuditFailDTO auditFailDTO);
}
